<html>
<head>
<title>23232323</title>
</head>
<body>
<div id="a" style="line-height: 12px"></div>
</body>
<script type="text/javascript">
    let num = prompt("12314");
    //let num = 4
    let star = document.getElementById("a");
    for(let i=1;i<=num;i++){
        for(let j=num*5;j>=i;j--){
            star.innerHTML += "&nbsp;";
        }
        for(let j=1;j<=i;j++){
            star.innerHTML += "*\t";
        }
        star.innerHTML += "<br>";
    }
    for(let i=num;i>=1;i--){
        for(let j=0;j<=(num-i)*5;j++){
            star.innerHTML += "&nbsp;";
        }
        for(let j=1;j<=i*5;j++){
            star.innerHTML += "*\t";
        }
        star.innerHTML += "<br>";
    }
    for(let i=1;i<=num-2;i++){
        for(let j=(num-i)*5;j>=0;j--){
            star.innerHTML += "&nbsp;";
        }
        for(let j=1;j<=i*4;j++){
            star.innerHTML += "*\t";
        }
        star.innerHTML += "<br>";
    }
    for(let i=1;i<=num;i++){
        for(let j=(num-i)*3;j>=0;j--){
            star.innerHTML += "&nbsp;";
        }
        for(let j=num-i;j>=0;j--){
            star.innerHTML += "*\t";
        }
        for(let w=0;w<=i*4-num;w++){
            star.innerHTML += "&nbsp;&nbsp; ";
        }
        for(let h=num-i;h>=0;h--){
            star.innerHTML += "*\t";
        }
        star.innerHTML += "<br>";
    }
</script>
</html>